public class Text {
    public static void main(String[] args) {
        MyArraryList list=new MyArraryList();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        list.add(5);
        list.dissplay();
        System.out.println();
        System.out.println("逆反后：");
        list.reserve();
        list.dissplay();
        System.out.println();
        list.func();
        list.dissplay();
    }
}
